import I18Parse from '../../common/i18Parse';
import CommonLang from './commonLang.js';
import MobileCommonLang from "@/locales/lang/mobileCommonLang";
var i18LangUtil = {
};

i18LangUtil.langeFilesHandler =function(langKey){
    let obj ={};
    let commonLang=I18Parse.langeHandler(CommonLang,langKey);
    obj = { ...obj,...commonLang };
    let mobileCommonLang=I18Parse.langeHandler(MobileCommonLang,langKey);
    obj = { ...obj,...mobileCommonLang };
    let jsFiles = import.meta.globEager("./impl/**/*.js")
    for (const key in jsFiles) {
        let json = jsFiles[key].default;
        let jsonLang=I18Parse.langeHandler(json,langKey);
        obj = { ...obj,...jsonLang };
    }
    return obj;
}
export default i18LangUtil;
